package com.example.mapper;

import com.example.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {

    @Select("select * from student where id=#{id}")
    Student selectStudent(Integer id);

    void save(Student student);

    @Select("select * from student")
    List<Student> selectAll();
}
